package com.viu.technology.mapper;

import com.viu.technology.po.Order;
import com.viu.technology.po.Product;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(String productId);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(String productId);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    int updateProductStockPessimism(Order order);
    int updateProductStockPessimismNotImpose(Order order);


    List<Product> selectAllProduct();

}